package com.meilai.project.service.business.workbench;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.entity.business.workbench.SaleWeekCustomerTarget;
import com.meilai.project.vo.business.workbench.SaleWeekCustomerTargetVO;
import com.meilai.project.vo.business.workbench.SignatureHistoryVO;
import com.meilai.project.vo.business.workbench.WeekTransactedCustomerDetailVO;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 销售每周预估成交客户表 服务类
 * </p>
 *
 * @author haiYangXu
 * @since 2022-08-16
 */
public interface SaleWeekCustomerTargetService extends IService<SaleWeekCustomerTarget> {

    /**
     * 查询目标用户
     *
     * @param week_ids   周id集合
     * @param user_id    用户id
     * @param type       类型 1公司 2个人
     * @param begin_date 查询的合同时间段
     * @param end_date   查询合同的结束时间
     * @return
     */
    List<WeekTransactedCustomerDetailVO> queryUserWeekTargetCustomerByWeekIds(List<Long> week_ids, Long user_id, Integer type, LocalDate begin_date, LocalDate end_date);

    List<SignatureHistoryVO> querySignatureHistoryList(Page<SignatureHistoryVO> page, Long customer_id, LocalDate begin_date, LocalDate end_date);

    List<SaleWeekCustomerTargetVO> querySaleWeekCustomerTargetVOList(Integer type, List<Long> week_ids, Long user_id);
}
